projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
368c9f5
)
Add support for Python mode in info-lookup-symbol
author
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 12 Aug 2021 14:10:57 +0000
(16:10 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 12 Aug 2021 14:10:57 +0000
(16:10 +0200)
* lisp/info-look.el (:mode): Add support for Python mode
(bug#31405).
lisp/info-look.el
patch
|
blob
|
history
diff --git
a/lisp/info-look.el
b/lisp/info-look.el
index fd6f8f15082de44502ff29964eb70919becab66d..72de0a4acb73b442fe960cd0656ac8c41487738f 100644
(file)
--- a/
lisp/info-look.el
+++ b/
lisp/info-look.el
@@
-900,6
+900,10
@@
Return nil if there is nothing appropriate in the buffer near point."
"^" "\\b"))
:parse-rule "[$@%]?\\([_a-zA-Z0-9]+\\|[^a-zA-Z]\\)")
+(info-lookup-maybe-add-help
+ :mode 'python-mode
+ :doc-spec '(("(python)Index")))
+
(info-lookup-maybe-add-help
:mode 'cperl-mode
:regexp "[$@%][^a-zA-Z]\\|\\$\\^[A-Z]\\|[$@%]?[a-zA-Z][_a-zA-Z0-9]*"